<?php
/**
 * Created by PhpStorm.
 * User: s.utkin
 * Date: 09.12.2014
 * Time: 14:15
 */

/**
 * @var $this \Pinenut\Action
 * @var $message Messenger\Messages
 * @var $messageIsMine bool
 */
?>
<?php echo $this->action(
	'.item',
	[
		'messageId' => (string) $message,
		'messageIsMine' => $messageIsMine
	]
) ?>
<?php if (!$messageIsMine) : ?>
	<?php echo $this->action('.setAllAsRead', ['groupId' => (string)$message->group]); ?>
<?php endif; ?>
